package com.wtwd.device.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author mjy
 * @since 2021-11-09
 */
@ApiModel(value="AppVersion对象", description="")
public class AppVersion implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "app管理表外键",required = true)
    private Long appId;

    @ApiModelProperty(value = "客户端类型1：ios,2:安卓",required = true)
    private Integer clientType;

    @ApiModelProperty(value = "下载路径",required = true)
    private String installLocation;

    @ApiModelProperty(value = "app版本",required = true)
    private String version;

    @ApiModelProperty(value = "发布时间",required = false)
    private Long createTime;

    @ApiModelProperty(value = "升级类型 1：强制升级，2：强提示升级，3：弱提示升级",required = true)
    private Integer type;

    @ApiModelProperty(value = "升级提示语",required = true)
    private String describe;

    @ApiModelProperty(value = "最低兼容版本",required = true)
    private String lowestVersion;

    @ApiModelProperty(value = "修改时间",required = false)
    private Long updateTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getAppId() {
        return appId;
    }

    public void setAppId(Long appId) {
        this.appId = appId;
    }

    public String getInstallLocation() {
        return installLocation;
    }

    public void setInstallLocation(String installLocation) {
        this.installLocation = installLocation;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public String getLowestVersion() {
        return lowestVersion;
    }

    public void setLowestVersion(String lowestVersion) {
        this.lowestVersion = lowestVersion;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getClientType() {
        return clientType;
    }

    public void setClientType(Integer clientType) {
        this.clientType = clientType;
    }

    @Override
    public String toString() {
        return "AppVersion{" +
                "id=" + id +
                ", appId=" + appId +
                ", clientType='" + clientType + '\'' +
                ", installLocation='" + installLocation + '\'' +
                ", version='" + version + '\'' +
                ", createTime=" + createTime +
                ", type=" + type +
                ", describe='" + describe + '\'' +
                ", lowestVersion='" + lowestVersion + '\'' +
                ", updateTime=" + updateTime +
                '}';
    }
}
